﻿<input type="text" id="ipt" name="name" value="" />
<input type="button" onclick="myfunction();" name="name" value="1111111111111111111111" />
<script type="text/javascript">
    function myfunction() {
        $.ajax({
            url: "../Home/TestSendMessage",
            data: { "Id": $("#ipt").val() },
            cache: false,
            type: "post",
            dataType: "text",
            success: function (response) {
                if (response == "success") {
                    alert("添加成功");
                } else {
                    alert("添加失败");
                }
            }
        });
    }
</script>